package com.github.livebase.util.html;

public class TextElement extends Element {
    private String content;
    public TextElement(String content) {
        super("textElement");
        this.content = content;
    }

    @Override
    public void appendChild(Element element) {
    }

    @Override
    public void setAttribute(String key, String value) {
    }

    @Override
    public String html() {
            return content;
        }

    @Override
    public String text() {
        return content;
    }

    @Override
    protected String htmlWithTag() {
        return content;
    }
}